package org.computumus.core.session;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * Created by IntelliJ IDEA.
 * User: planadecu
 * Date: 27 juin 2010
 * Time: 23:54:25
 * To change this template use File | Settings | File Templates.
 */
public class SessionUtils {
    public static Session getSession(HttpServletRequest request) {
        Session session = new Session();
        HttpSession httpSession = request.getSession();
        session.setId(httpSession.getId());
        return session;
    }
}
